<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Chat extends CI_Controller {

	public function index()
	{
		//Só loga se tiver um paciente na Sessão
		$this->load->model('Patient','p');
		//Se tiver logado passa, senao vai para login
		$this->p->logged('',false,true);

		$data['title'] = 'NutriApp'; // Capitalize the first letter
		$data['id_patient']		= $this->session->userdata('id_patient');
		$data['id_nutritionist']= 1;
		$this->load->view('p_chat',$data);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/chat.php */